package com.example.demo.controller;
 
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
 
/**
 * @author 龙宝
 * @date 2023/11/9
 * @des 测试
 */
@Controller
@RequestMapping("/chat")
public class IndexController {
 
    /**
     * 跳转到聊天室
     */
    @GetMapping("/index")
    public String toChat() {
        return "index";
    }
}